<?php
namespace Cpadmin\Model;
class User{
    public $userId;
    public $username;
    public $password;
    public function exchangeArray($data) {
        $this->userId = (isset($data['userId'])) ? $data['userId'] : null;
        $this->username = (isset($data['username'])) ? $data['username'] : null;
        $this->password = (isset($data['password'])) ? $data['password'] : null;
      
    }
}